package com.ymatou.apigateway.service;

import com.ymt.base.YmatouBaseCall;
import com.ymttest.utils.EnvSetup;
/**
*更新商品库存Call
*FreeMaker Template自动生成代码
*/
public class ShenqiImageUploadCall extends YmatouBaseCall{
	private static String opurl ="api/v1?method=sq.image.upload";
	
	public ShenqiImageUploadCall() {
		super(EnvSetup.getSystemUrl("apigateway"),opurl,"POST","JSON");
	}
	@Override
	public void addDefHeader() {
		client.addHeader("Accept","text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}
	
	public String getCode()
	{
		return getString("code");
	}
	
	public String getMessage()
	{
		return getString("message");
	}
}